import api from '../index'

export default {
  // 保存条目
  createOrUpdate: (data: any) => api.post('/v1/orderDetailItemCreateOrUpdate', data),
  page: (data: any) => api.get('/v1/orderDetail/page', { params: data }),
  list: (data: any) => api.get('/v1/orderDetail/list', { params: data }),
  delBatch: (data: any) => api.delete('/v1/orderDetail/batchByIds', { data }),
  del: (id: any) => api.delete(`/v1/orderDetail/${id}`),
}
